package cn.cs.service;


import cn.cs.common.Page;
import cn.cs.pojo.ClientRepRel;
import cn.cs.pojo.ClientUser;

import java.util.List;
import java.util.Map;

public interface ClientUserService {

    public ClientUser getClientUserById(String id)throws Exception;

    public ClientUser getClientUserByAccount(String id)throws Exception;

    public ClientUser getClientUserByPhone(String phone)throws Exception;

    public ClientUser getClientUserByOpenIdAccountNull(String openId)throws Exception;

    public List<ClientUser> getClientUserListByMap(Map<String, Object> param)throws Exception;

    public Integer getClientUserCountByMap(Map<String, Object> param)throws Exception;

    public Integer addClientUser(ClientUser clientUser)throws Exception;

    public Integer modifyClientUser(ClientUser clientUser)throws Exception;

    public Integer modifyClientUserByOpenId(ClientUser clientUser)throws Exception;

    public Integer deleteClientUserById(String id)throws Exception;

    public Page<ClientUser> queryClientUserPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public ClientUser getClientUserByOpenId(String openId) throws Exception;

    public Integer itriptxAddClientRepRel(ClientRepRel clientRepRel) throws  Exception;

    public Integer updateClientRepRel(ClientRepRel clientRepRel) throws  Exception;

    public Map<String, Object> getWxVersionCode() throws  Exception;

    public Integer setWxVersionCode(String versionCode)throws Exception;

    public List<Map<String, Object>> getUserByRepUserId(String rep_user_id)throws Exception;

    public Integer saveUserScoreHistory(Map<String, Object> map)throws Exception;

    public List<Map<String, Object>> getUserScoreHistoryByUserId(String userId)throws Exception;

}
